package com.todo.strategy.online.iface.request;

import com.todo.common.common.entity.CurrentUser;
import com.todo.strategy.online.iface.model.MemoTemplateContentModelParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @author azhebuxing
 * @date 2024/11/29 18:14
 * @description
 */
@Data
@Schema(title = "更新备忘录模板信息入参", description = "更新备忘录模板信息入参")
public class UpdateMemoTemplateParam {

    private CurrentUser _user;

    @Schema(title = "模板id", description = "模板id")
    private Long templateId;

    @Schema(title = "模板详情", description = "模板详情")
    private MemoTemplateContentModelParam contentModel;

    @Schema(title = "名称", description = "名称")
    private String name;

    @Schema(title = "描述", description = "描述")
    private String desc = "";

    @Schema(title = "建议攻略类型", description = "建议攻略类型")
    private Integer suggestStrategy;

    @Schema(title = "参考意见", description = "参考意见")
    private String referenceOpinion = "";

    public boolean baseCheck() {
        if (templateId == null || contentModel == null || name == null || suggestStrategy == null) {
            return false;
        }
        return true;
    }
}
